﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="User-Login.ascx.cs" Inherits="User_Login"  %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<style>
#ContentPlaceHolder1_ContentPlaceHolder_SubMaster_Login1_upgroress1
{
    float: right;
    margin:5px 70px 0 -70px; 
}
a,a:visited
{
    color:#00947b;
}
</style> 


<asp:UpdatePanel ID="upMain" runat="server" UpdateMode="Conditional">
    <ContentTemplate>
        <asp:Panel ID="df" runat="server" DefaultButton="btnsubmit">
            <div class="refine_search_box pb0px h278px" id="divPreLogin" runat="server">
                <h1>
                    <img src="/images/usericon.png" height="24" width="24" border="0" align="absmiddle"><span
                        class="ml5px">User Form</span></h1>
                <p class="ml15px">
                    Username or Email</p>
                <asp:TextBox ID="txtusername" runat="server" class="input_size margin_tb"></asp:TextBox>
                <cc1:TextBoxWatermarkExtender ID="TBWE2" runat="server" TargetControlID="txtusername"
                    WatermarkText="Username or Email" />
                <p class="ml15px">
                    Password</p>
                <asp:TextBox ID="txtpassword" runat="server" TextMode="Password" class="input_size margin_tb"></asp:TextBox>
                <cc1:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender1" runat="server" TargetControlID="txtpassword"
                    WatermarkText="Password" />
                <table width="100%" cellpadding="0" cellspacing="0" border="0" class="ml15px">
                    <tr>
                        <td>
                            <asp:CheckBox ID="chkRemember" runat="server" Text=" Remember me" ForeColor="#F47519"  CssClass="font12px" />
                        </td>
                        <td class="green">
                            <a href="/Reg-Forgot-Password.aspx" id="bottom_toppup4" class="fbox" class="font12px">Forgot
                                Password</a>
                        </td>
                    </tr>
                </table>
                <div class="savesearch mb10px">
                    <asp:ImageButton ID="btnsubmit" src="/images/login.png" runat="server" OnClick="btnsubmit_Click" />
                    <br />
                    <asp:UpdateProgress ID="upgroress1" runat="server" AssociatedUpdatePanelID="upMain">
                        <ProgressTemplate>
                            <img src="/images/loadings.gif" alt="" />
                        </ProgressTemplate>
                    </asp:UpdateProgress>
                    <asp:Label ID="lblMessage" runat="server" ForeColor="Red" EnableViewState="false"
                        CssClass="registration_message"></asp:Label>
                </div>
            </div>
        </asp:Panel>
    </ContentTemplate>
</asp:UpdatePanel>
<!--div to be displayed after login-->

		<div class="refine_search_box pb0px" id="divPostLogin" runat="server" visible="false">
        	<h1><img src="/images/usericon.png" height="24" width="24" border="0" align="absmiddle"><span class="ml5px">User Form</span></h1>
            
            <ul class="userlist">
           		<li><a href="/Reg-Update-Profile.aspx" style="text-transform:capitalize"><span class="userimg"><img  border="0" align="texttop" src='<%= "/Handler.ashx?ID="+ UserId %>'></span>Hello, <%=FName + " " +LName%></a></li>
            	<li><a href="/Reg-Update-Profile.aspx"><span class="usericon"><img src="/images/profile_icon.jpg" height="23" width="30" border="0" align="absmiddle"></span>Profile</a></li>
            	<li><a href="/Reg-ChangePassword.aspx" class="changePassword"><span class="usericon"><img src="/images/profile_icon.jpg" height="23" width="30" border="0" align="absmiddle"></span>Change Password</a></li>
                <%--<li><a href="#"><span class="usericon"><img src="/images/statistics_icon.png" height="28" width="28" border="0" align="absmiddle"></span>Statistics</a></li>--%>
                <% if (sectionName == "classified")
                   { %>
                <li><a href="/Classified/Cld-List.aspx?ViewType=MyAds"><span class="usericon"><img src="/images/myadd_icon.png" height="24" width="28" border="0" align="absmiddle"></span>My Ads</a></li>
              <%--  <li><a href="#"><span class="usericon"><img src="/images/order_icon.png" height="28" width="28" border="0" align="absmiddle"></span>My Orders</a></li>--%>
                <li><a href="/Classified/Cld-Post-Ad.aspx"><span class="usericon"><img src="/images/postadd_icon.png" height="26" width="28" border="0" align="absmiddle"></span>Post An Ad</a></li>
                <%}
                   else if (sectionName == "notes")
                   {  %>
                <li><a href="/Notes/NTS-AddNotes.aspx"><span class="usericon"><img src="/images/postadd_icon.png" height="26" width="28" border="0" align="absmiddle"></span>Add Notes</a></li>
                <li><a href="/Notes/NTS-NotesList.aspx?ViewType=MyDocs"><span class="usericon"><img src="/images/myadd_icon.png" height="26" width="28" border="0" align="absmiddle"></span>My Notes</a></li>
                <%} %>
                <li><a href="#"><span class="usericon"><asp:ImageButton ImageUrl="/images/logout_icon.png" ID="imgSignOut" runat="server" OnClick="btnSignOut_Click" 
                Height="28" Width="28" BorderWidth="0" align="absmiddle"/></span><asp:LinkButton
                        ID="HyperLink1" runat="server" OnClick="btnSignOut_Click">Log Out</asp:LinkButton></a></li>
            </ul>            
                          
          
        </div>  

        
